/* eslint-disable camelcase */

export type QuestionType = '基础问答'|'推理型问答'|'开放式问答'|'总结性型问答'

export const questionTypes = ['基础问答', '推理型问答', '开放式问答', '总结性型问答']

export interface IContext{
  context_id: number
  context: {
    text: string
    meta_data_info: any
  }[]
}

export interface IQa{
  question: string
  answer: string
  question_type: QuestionType
}

export interface IJsonItem{
  id: number
  question: string
  answer: string
  question_type: QuestionType
  context: IContext
}

export interface IJsonDataContext {
  context_id: number
  context: {
    text: string
    meta_data_info: any
  }[]
  qaList: IQa[]
}
export interface IJsonData {
  fileName: string
  contexts: IJsonDataContext[]
}
